package com.ydles.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Project Name: springboot_thymeleaf
 * File Name: TestController
 *
 * @version 1.0
 * @author:wenerduo
 * @Date: 2022/02/08/上午 9:25
 * Copyright (c) 2022,
 */
@Controller
@RequestMapping("/test")
public class TestController {

    /***
     * 访问/test/hello  跳转到demo1页面
     * @param model
     * @return
     */
    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("hello","hello welcome");
        return "demo";
    }
}